<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
  console.log(Location); // ƒ Location() { [native code] }

  console.log(location);
  console.log(window.location);
  console.log(document.location);
/*
Location {href: "http://localhost:63342/javascript_core/BOM%E5%92%8…/location/00.html?_ijt=op7on278lupcepok4ie315pr1t", ancestorOrigins: DOMStringList, origin: "http://localhost:63342", protocol: "http:", host: "localhost:63342", …}
  ancestorOrigins: DOMStringList {length: 0}
  assign: ƒ assign()
  fragmentDirective: FragmentDirective {}
  hash: ""
  host: "localhost:63342"
  hostname: "localhost"
  href: "http://localhost:63342/javascript_core/BOM%E5%92%8CDOM/%E8%B7%AF%E7%94%B1/location/00.html?_ijt=op7on278lupcepok4ie315pr1t"
  origin: "http://localhost:63342"
  pathname: "/javascript_core/BOM%E5%92%8CDOM/%E8%B7%AF%E7%94%B1/location/00.html"
  port: "63342"
  protocol: "http:"
  reload: ƒ reload()
  replace: ƒ replace()
  search: "?_ijt=op7on278lupcepok4ie315pr1t"
  toString: ƒ toString()
  valueOf: ƒ valueOf()
  Symbol(Symbol.toPrimitive): undefined
  __proto__: Location
*/

  console.log(window.location === document.location ); // true
  console.log(window.location === location ); // true
</script>
</body>
</html>
